package service;

import bean.Users;
import dao.UsersDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Controller;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;


@Service("us")
public class UsersService {

    @Autowired
//    @Qualifier("ud")
    UsersDao1 ud;

    public void register(Users user){
        System.out.println("service层执行用户注册");
        ud.addUser(user);
    }


}
